import request from '@/utils/request'

export function login(data){
    return request({
       url:'/login',
       method:'post',
       data:qs.stringify(data)
    });
}

export function initLogin(code){
   return {
       code:code,
       info:{
           username:'',
           session_id:'',
           user_id:'',
           role_id:'',
           is_grid:0
       }
   };
}
